home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
menu
/
kwmenu10.zip
/
KWKEY.DOC
< prev
next >
Wrap
Text File
|
1992-01-10
|
5KB
|
136 lines
This document describes how to use the utility program KWKEY that is
provided with KWMENU. Both KWMENU and KWKEY are Copyright (C) 1991 by
KeenWare. ALL RIGHTS RESERVED. Refer to KWMENU.DOC for licensing
information.
KWKEY is a simple utility that enables you to preload keystrokes into
the keyboard buffer. It is especially useful in batch files, and within
the 'Command String' field in KWMENU, where it can be used to fake input
to another program. For example, if you have one of those annoying
programs that requires you to "Hit any key to begin," you can use KWKEY
within a batch file (or a KWMENU 'Command String') to fake a key to that
program. When the batch file loads the program, the faked keystoke is
interpreted just as if you had typed it yourself.
For example, say you want to run a program named PROG that requires you
to "Press Y to Begin." Your batch file to fake an entry of 'Y' to PROG
would be
KWKEY Y
PROG
Similarly, to run PROG from within KWMENU, you would use the following
simple 'Command String':
KWKEY Y,PROG
KWKEY can also fake CTRL and ALT key combinations. The table below
lists the keystrokes that have been shown by testing with various
programs to be "fake-able" by KWKEY. Other keystroke fakes are probably
also possible. No attempt has been made to list all possible keystrokes
that might be faked with KWKEY, since KWKEY was written primarily to
serve as a sample program for KWMENU. No attempt has been made to make
it superior to the many other key-faking programs that are available in
the marketplace. We do believe though that you will find it a useful
supplement to your other utility programs.
KWKEY can pass more than one keystroke at a time to a program. For
example, to pass a keystroke sequence of F1, F2, and ENTER to a program,
you could use the following batch file:
KWKEY ?059?060#13
PROG
KWKEY does have some limitations, as do the majority of existing
key-faking programs. For example, it will not accept more than 15
keystroke codes at once. That is, if you use
KWKEY 123451234511234567
it would pass all the keys except the 6 and the 7. Additionally, KWKEY
will not work on some programs, particularly those that are designed to
clear the keyboard buffer before accepting an entry. For example,
KWMENU is designed to clear the keyboard buffer out before it accepts a
keystroke for whcih program you want to run. (This is done to prevent
an inadvertent keystroke from running a program from KWMENU when KWMENU
is started up.) However, there are a very large number of programs that
will accept faked keystrokes, and KWKEY should work well on those.
KEY CODE SHIFT CTRL ALT
a a A #01 ?030
b b B #02 ?048
c c C #03 ?046
d d D #04 ?032
e e E #05 ?018
f f F #06 ?033
g g G #07 ?034
h h H #08 ?035
i i I #09 ?023
j j J #10 ?036
k k K #11 ?037
l l L #12 ?038
m m M #13 ?050
n n N #14 ?049
o o O #15 ?024
p p P #16 ?025
q q Q #17 ?016
r r R #18 ?019
s s S #19 ?031
t t T #20 ?020
u u U #21 ?022
v v V #22 ?047
w w W #23 ?017
x x X #24 ?045
y y Y #25 ?021
z z Z #26 ?044
1 1 ! --- ?120
2 2 @ --- ?121
3 3 --- --- ?122
4 4 $ --- ?123
5 5 % --- ?124
6 6 ^ --- ?125
7 7 & --- ?126
8 8 * --- ?127
9 9 ( --- ?128
0 0 ) --- ?129
F1 ?059 ?084 ?094 ?104
F2 ?060 ?085 ?095 ?105
F3 ?061 ?086 ?096 ?106
F4 ?062 ?087 ?097 ?107
F5 ?063 ?088 ?098 ?108
F6 ?064 ?089 ?099 ?109
F7 ?065 ?090 ?100 ?110
F8 ?066 ?091 ?101 ?111
F9 ?067 ?092 ?102 ?112
F10 ?068 ?093 ?103 ?113
ENTER #13
TAB #09
ESC #27
SPACE #20
MINUS -
PLUS +
EQUALS =
/ /
UP ?072
DOWN ?080
LEFT ?075
RIGHT ?077
PGUP ?073
PGDN ?081
HOME ?071
END ?079
INS ?082
DEL ?083